//
//  xsSelectAddMaterialCollectionView.h
//  digital_robot_demo
//
//  Created by xskj on 2024/8/30.
//

#import <UIKit/UIKit.h>
#import "xsSelectAddMaterialCollectionViewHeadView.h"
#import "xsSelectAddMaterialCollectionViewCell.h"

NS_ASSUME_NONNULL_BEGIN


@protocol xsSelectAddMaterialCollectionViewProtoCol <NSObject>

@optional
//collectionType;// 0全部 3图片 1视频
// 0时 fileType传@""  3时fileType传@"3" 1时fileType传@"1"
- (void)xsSelectAddMaterialCollectionCellBeClick:(xsSelectAddMaterialCollectionViewCellModel *)model withCollectionType:(NSInteger)collectionType;

//collectionType;// 0全部 3图片 1视频
- (void)xsSelectAddMaterialCollectioncellDeleteButtonBeClickBk:(xsSelectAddMaterialCollectionViewCellModel *)model withCollectionType:(NSInteger)collectionType;


@end

@interface xsSelectAddMaterialCollectionView : UICollectionView

//collectionType;// 0全部 3图片 1视频
// 0时 fileType传@""  3时fileType传@"3" 1时fileType传@"1"
- (instancetype)initWithFrame:(CGRect)frame collectionViewLayout:(UICollectionViewLayout *)layout withCollectionType:(NSInteger)collectionType;

@property (nonatomic,assign)id<xsSelectAddMaterialCollectionViewProtoCol> delegateConfigurationMusic;

////collectionType;// 0全部 3图片 1视频
//- (void)xsCollectionViewUpdataMaterialWithModel:(xsSelectAddMaterialCollectionViewCellModel *)upMaterialModel;

- (void)xsCollectionViewUpdataMaterialWithId:(NSInteger)modelId  withIsSelectModel:(BOOL)xsIsSelectModol;

//collectionType;// 0全部 3图片 1视频
- (void)collectionVBossIPUniappVuePageUploadImageOrVideoSuccessfulWith:(NSInteger)collectionType;

// 删除成功后vue传递过来删除的Id
- (void)xsSelectAddMaterialCollectionVUniappVueDeleteMaterialSuccessWithId:(NSInteger)Id;

// 设置 全部 图片  视频collectionview的数据全部修改为为选中
- (void)xsUpdateCollectionViewAllImageVideoModelToNotSelect;

@end

NS_ASSUME_NONNULL_END
